/*
 * File:   ImageCutterTest.h
 * Author: Guilherme Monteiro
 *
 */

#ifndef IMAGECUTTERTEST_H
#define	IMAGECUTTERTEST_H

#include <cppunit/extensions/HelperMacros.h>

#include <cv.h>
#include <cxcore.h>
#include <highgui.h>

#include "../headers/ImageCutter.h"
#include "../headers/InvalidRectException.h"

using namespace std;

class ImageCutterTest : public CPPUNIT_NS::TestFixture {
    CPPUNIT_TEST_SUITE(ImageCutterTest);

    CPPUNIT_TEST(testCutToValidRotatedImage);
    CPPUNIT_TEST(testCutToInvalidRotatedImage);

    CPPUNIT_TEST_SUITE_END();

public:
    ImageCutterTest();
    virtual ~ImageCutterTest();
    void setUp();
    void tearDown();

private:
    string pathValidImg;
    string pathInvalidImg;
    IplImage* validImg;
    IplImage* invalidImg;
    
    void testCutToValidRotatedImage();
    void testCutToInvalidRotatedImage();
};

#endif	/* IMAGECUTTERTEST_H */

